﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Common;
using System.Web.Mvc;
using Common.Views;

namespace ElectrosLtdApplication.Models
{
    public class FilterModel
    {
        public int ProductID { get; set; }

        public SelectList Products { get; set; }

        IList<OrdersView> products {get;set;}

        public FilterModel(string username)
        {
            products = new OrdersServ.OrdersServiceClient().GetProductsBoughtByUser(username);
            Products = new SelectList(products, "ProductID", "ProductName");
        }
    }
}